<div  class="am-u-sm-12 widget" style="margin:10px ;">
	<form class="am-form-inline tpl-form-border-form" action="" method="get">
		<div class="am-u-sm-12">
			<div class="am-u-sm-3 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">车牌号： </label>
					<div class="am-u-sm-8 cl-p">
						<input type="hidden" class="CarId" name="car_id" value="{$item.car_id}" />
						<input type="text" class="am-form-field tpl-form-no-bg  car_number" style="line-height: 21px;" value="{$item.number}" placeholder="点击选择车辆" readonly="">
					</div>
			</div>
			<div class="am-u-sm-6 cl-p">
				<label for="user-name" class="am-u-sm-2 am-form-label cl-p am-text-truncate" >时间区间: </label>
				<div class="am-form-group am-u-sm-10 cl-p" >
					<div class="am-u-sm-12 cl-p">
						<div class="am-u-sm-6">
						<input type="text" class="am-form-field tpl-form-no-bg" name="start_date" placeholder="开始时间" data-am-datepicker="" readonly="">
						</div>
						<div class="am-u-sm-6">
						<input type="text" class="am-form-field tpl-form-no-bg"  name="end_date" placeholder="结束时间" data-am-datepicker="" readonly="">
						</div>
					</div>
					
				</div>
			</div>
			
			<div class="am-u-sm-3 cl-p" >
				<button type="submit" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">查询</button>
				<a href="{:url('add')}" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">添加记录</a>
			</div>
		</div>
	</form>
	<div style="padding: 10px;" class="am-u-sm-12">
		<div><button style="float: right;" type="button" class="am-btn am-btn-default am-radius am-btn-xs" style="margin-top: -2px;">导出文件</button></div>
		<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black ">
			<thead>
				<tr>
					<th>年检编号</th>
					<th>车牌号</th>
					<th>年检日期</th>
					<th>年检地点</th>
					<th>年检人</th>
					<th>年检状态</th>
					<th>年检费用</th>
					{if $op == 'search'}
					{else/}
					<th>操作</th>
					{/if}
				</tr>
			</thead>
			<tbody>
				{foreach $list as $key => $item}
				<tr data-id="{$item.mot_record_id}">
					<td>{$item.mot_record_id}</td>
					<td><a href="{:url('car/detail',['car_id'=>$item['car_id'] ])}?survey=1">{$item.number}</a></td>
					<td>{$item.start_date}</td>
					<td>{$item.mot_add}</td>
					<td>{$item.checker}</td>
					<td>{$item.state}</td>
					<td>{$item.price}</td>
{if $op == 'search'}
					{else/}
					<td data-id="{$item.number}">
						<div class="tpl-table-black-operation">

							<a href="{:url('edit',['mot_record_id'=>$item.mot_record_id])}">
								<i class="am-icon-pencil"></i> 编辑
							</a>
							<a href="javascript:;" class="tpl-table-black-operation-del delete-list" data-method="delete">
								<i class="am-icon-pencil"></i> 删除
							</a>
						</div>
					</td>
					{/if}
				</tr>
				{/foreach}
				<!-- more data -->
			</tbody>
		</table>
		<div class="am-u-lg-12 am-cf">

			<div class="am-fr">
			{$pager}
			</div>
		</div>
	</div>

</div>